import http from '../plugins/http';

interface ISJSDataModal {
    name: string;
    recentPrice: string;
    topPrice: string;
    bottomPrice: string;
    openPrice: string;
    updateTime: string;
};

interface ISBDataModal {
    name: string;
    taxExclusivePrice: string;
    wage: string;
    taxInclusivePrice: string;
    updateTime: string;
};

type IOtherBrands = ISJSDataModal;

interface IDataModal {
    SJSData: ISJSDataModal[];
    SBData: ISBDataModal[];
    otherBrands: IOtherBrands[];
}

interface IResultModal {
    code: number;
    data: IDataModal;
    msg: string;
}
export const getGoldList = async () => {
    const result: IResultModal = await http.request({
        method: 'get',
        url: '/api/gold/get',
    })
    return result;
}